Add LINQ Auto-Generated Value Marker [Column(IsDbGenerated=true)] in Buddy Class
Posted
by Alex
on Stack Overflow
See other posts from Stack Overflow
or by Alex
Published on 2010-06-09T21:07:14Z
Indexed on
2010/06/09
21:12 UTC
Read the original article
Hit count: 282
Hello,
is it possible to decorate a field of a LINQ generated class with [Column(IsDbGenerated=true)]
using a buddy class (which is linked to the LINQ class via [MetadataType(typeof(BuddyMetadata))]
) ?
My goal is to be able to clear and repopulate the LINQ ORM designer without having to set the "Auto Generate Value" property manually every time to re-establish the fact that certain columns are autogenerated.
Thanks!
© Stack Overflow or respective owner